package com.ruoyi.kong.entity;

import java.util.ArrayList;
import java.util.List;

public class KongCaCertificate implements Comparable {
    private Long created_at;
    private String cert;
    private String id;
    private List<String> tags = new ArrayList<>();

    @Override
    public int compareTo(Object o) {
        if (o == null) {
            return 1;
        }
        KongCaCertificate sni = null;
        if (o instanceof KongCaCertificate) {
            sni = (KongCaCertificate) o;
        }
        return sni.created_at.compareTo(this.created_at);
    }

    public KongCaCertificate trim() {
        return this;
    }
}
